/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.recovery.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;
import com.jeesite.modules.goods.entity.GoodsType;
import com.jeesite.modules.xcxAdmin.entity.ZtAdmin;

/**
 * 测试数据Entity
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Table(name = "zt_recovery", alias = "a", columns = {
		@Column(name = "id", attrName = "id", label = "编号", isPK = true),
		@Column(name = "code", attrName = "code", label = "订单号", queryType = QueryType.LIKE),
		@Column(name = "title", attrName = "title", label = "商品名", queryType = QueryType.LIKE),
		@Column(name = "price", attrName = "price", label = "商品价格"),
		@Column(name = "gjprice", attrName = "gjprice", label = "估价价格"),
		@Column(name = "type", attrName = "ztGoodsType.id", label = "商品类型"),
		@Column(name = "model", attrName = "model", label = "商品型号"),
		@Column(name = "status", attrName = "status", label = "状态0正常  1已删除"),
		@Column(name = "contacts", attrName = "contacts", label = "联络人"),
		@Column(name = "phone", attrName = "phone", label = "手机"),
		@Column(name = "name", attrName = "name", label = "姓名"),
		@Column(name = "ident", attrName = "ident", label = "身份证号码"),
		@Column(name = "imgs", attrName = "imgs", label = "回收图片"),
		
		@Column(name = "isuse", attrName = "isuse", label = "是否能正常使用"),
		@Column(name = "iscomplete", attrName = "iscomplete", label = "零件是否齐全"),
		@Column(name = "iswear", attrName = "iswear", label = "外观磨损程序"),
		@Column(name = "remarks", attrName = "remarks", label = "描述"),
		@Column(name = "logistics", attrName = "logistics", label = "物流订单号"),
		@Column(name = "logistics_name", attrName = "logisticsName", label = "物流名"),
		@Column(name = "logistics_code", attrName = "logisticsCode", label = "物流公司代号"),
		@Column(name = "admin_id", attrName = "ztAdmin.id", label = "用户id"),
		
		@Column(name = "license", attrName = "license", label = "营业执照"),
		@Column(name = "fro_idcard", attrName = "froIdcard", label = "身份证正面照"),
		@Column(name = "back_idcard", attrName = "backIdcard", label = "身份证背面照"),
		
	
		@Column(name = "codestatus", attrName = "codestatus", label = "订单状态"),
		
		@Column(name = "create_date", attrName = "createDate", label = "创建时间"),

}, joinTable = {
		@JoinTable(type = Type.LEFT_JOIN, entity = ZtAdmin.class, attrName = "ztAdmin", alias = "u10", on = "u10.id = a.admin_id", columns = {
				@Column(name = "id", label = "商户编码", isPK = true),
				@Column(name = "name", label = "商户名称",attrName = "name",queryType = QueryType.LIKE), }),

		@JoinTable(type = Type.LEFT_JOIN, entity = GoodsType.class, attrName = "goodsType", alias = "z", on = "z.id = a.type", columns = {
				@Column(name = "id", label = "编码", isPK = true),
				@Column(name = "name", label = "类型名称",attrName = "name",queryType = QueryType.LIKE), })

}, orderBy = "a.create_date DESC")
public class ZtRecovery extends DataEntity<ZtRecovery> {

	private static final long serialVersionUID = 1L;
	private String isuse="",iscomplete="",iswear="",remarks="";
	private String code="";
	private String title="";
	private Double price;
	private Double gjprice;
	private GoodsType goodsType;
	private String model="";
	private String contacts="", phone="", name="", ident="", imgs="", status="0", codestatus="";
	private ZtAdmin ztAdmin;
	private String logisticsCode;
	private Integer pageNum;
	
	private String logisticsName="";
	private String logistics="";
	
	private String license;
	private String froIdcard;
	private String backIdcard;
	
	
	@JsonIgnore
	private Date createDate;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private Date updateDate;
	
	public String getLicense() {
		return license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

	public String getFroIdcard() {
		return froIdcard;
	}

	public void setFroIdcard(String froIdcard) {
		this.froIdcard = froIdcard;
	}

	public String getBackIdcard() {
		return backIdcard;
	}

	public void setBackIdcard(String backIdcard) {
		this.backIdcard = backIdcard;
	}

	public String getLogisticsCode() {
		return logisticsCode;
	}

	public void setLogisticsCode(String logisticsCode) {
		this.logisticsCode = logisticsCode;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public String getLogisticsName() {
		return logisticsName;
	}

	public void setLogisticsName(String logisticsName) {
		this.logisticsName = logisticsName;
	}

	public String getLogistics() {
		return logistics;
	}

	public void setLogistics(String logistics) {
		this.logistics = logistics;
	}

	public String getIsuse() {
		return isuse;
	}

	public void setIsuse(String isuse) {
		this.isuse = isuse;
	}

	public String getIscomplete() {
		return iscomplete;
	}

	public void setIscomplete(String iscomplete) {
		this.iscomplete = iscomplete;
	}

	public String getIswear() {
		return iswear;
	}

	public void setIswear(String iswear) {
		this.iswear = iswear;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getGjprice() {
		return gjprice;
	}

	public void setGjprice(Double gjprice) {
		this.gjprice = gjprice;
	}

	public GoodsType getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(GoodsType goodsType) {
		this.goodsType = goodsType;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdent() {
		return ident;
	}

	public void setIdent(String ident) {
		this.ident = ident;
	}

	public String getImgs() {
		return imgs;
	}

	public void setImgs(String imgs) {
		this.imgs = imgs;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCodestatus() {
		return codestatus;
	}

	public void setCodestatus(String codestatus) {
		this.codestatus = codestatus;
	}
	@JsonIgnore
	public ZtAdmin getZtAdmin() {
		return ztAdmin;
	}

	public void setZtAdmin(ZtAdmin ztAdmin) {
		this.ztAdmin = ztAdmin;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}